home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
__SETCOL.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
3KB
|
98 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_SetColor( nColorArea, cNewColor ) --> cOldSetting
PARAMETERS:
PARAMETERS: nColorArea : Color Area
cNewColor : New Color Setting Value
SHORT:
Set individual color settings without affecting others in the
scheme.
DESCRIPTION:
DESCRIPTION: _SetColor() works identically to Clipper's SETCOLOR()
function with the singular exception that it works on individual color
"areas" independently from the rest. That is, you can set the
Standard, Enhanced, and Unselected foreground and background colors
without affecting or needing to know the settings of the others.
If cNewColor is not specified, the function simply returns the current
area color setting.
The individual color areas are selected by the following numerical orders:
1 Standard Foreground Color
2 Standard Background Color
3 Enhanced Foreground Color
4 Enhanced Background Color
5 Unselected Foreground Color
6 Unselected Background Color
Use the following #define statements in your application for clarity:
#define STANDARD_FORE 1
#define STANDARD_BACK 2
#define ENHANCED_FORE 3
#define ENHANCED_BACK 4
#define UNSELECT_FORE 5
#define UNSELECT_BACK 6
cNewColor valid values are:
n BLACK
b BLUE
g GREEN
bg CYAN
r RED
rb NAGENTA
gr BROWN / YELLOW
w WHITE
u UNDERLINE (MONO)
i INVERSE (MONO)
x BLANK (NON-DISPLAY) (MONO)
_SetColor() can, for example, alter the standard foreground color without
changing or needing to know the standard background color.
NOTE:
Background and Border settings are not supported. On some VGA cards and
monitors, the BACKGROUND color, which is supposedly not supported by Clipper,
actually sets the color of a small border. In any case, it is not supported
by Klipper's _SetColor().
EXAMPLE:
SET COLOR TO w+/b,g+/n
t = _SetColor(STANDARD_FORE,'w+*')
Result: The standard foreground color is changed to high-white-blinking,
the other color settings remain unchanged, and the function returns "W+"
t = _SetColor(ENHANCED_BACK,'b')
Result: The enhanced background color is changed to blue, the other
color settings remain unchanged, and the function returns "N"
t = _SetColor(UNSELECT_BACK)
Result: The unselected background color is left unchanged and and the
function returns "N"
******************************************************************************/